package com.xd.center.api.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "指数")
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = false)
public class Index extends Community {

  @ApiModelProperty(value = "指数ID")
  private String indexId;
  @ApiModelProperty(value = "指数级别")
  private String indexLevel;
  @ApiModelProperty(value = "指数时间")
  private String indexDate;
  @ApiModelProperty(value = "挂牌量指数")
  private Double numIndex;
  @ApiModelProperty(value = "挂牌价指数")
  private Double priceIndex;
  @ApiModelProperty(value = "挂牌量指数环比")
  private Double numMomRatio;
  @ApiModelProperty(value = "挂牌价指数环比")
  private Double priceMomRatio;
  @ApiModelProperty(value = "指数类型")
  private String strType;
  @ApiModelProperty(value = "时间范围")
  private String cycleType;
  @ApiModelProperty(value = "挂牌量指数同比")
  private Double numYoyRatio;
  @ApiModelProperty(value = "挂牌价指数同比")
  private String priceYoyRatio;
  @ApiModelProperty(value = "均价")
  private Double priceAvg;
  @ApiModelProperty(value = "更新时间（毫秒）")
  private LocalDateTime version;
}
